package com.fyyg.model;


/**
 * @author jiangfeicheng
 * @date 2019-08-24
 * @email 2323039433@qq.com
 **/
public enum ResponseCode {

    SUCCESS("000000","成功"),
    ERROR("999999","系统异常"),
    ERROR_DEFAULT("000001","系统内部错误"),
    ERROR_UN_KNOW("000002","未知异常，请联系管理员"),
    ERROR_DATA_FORMAT("000003","请求参数格式错误"),
    ERROR_DATA_CHECK("000004","请求参数校验不通过"),
    ERROR_DATA_RECHECK("000005","请求参数校验提醒用户确认操作");

    private String code;
    private String msg;

    ResponseCode(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode(){return this.code;}
    public String getMsg(){return this.msg;}
}
